<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"+"manage/";

%>
<%@ taglib prefix="s" uri="/struts-tags" %> 
<jsp:include page="include/menu.jsp"/>

		<div class="contents">
			<div class="grid_wrapper">

				<div class="g_6 contents_header">
					<h3 class="i_16_dashboard tab_label">网站</h3>
					<div><span class="label">基本数据统计</span></div>
				</div>
				  

				<div class="g_12 separator"><span></span></div>
				
				<!-- Quick Statistics -->
				<div class="g_3 quick_stats">
					<div class="big_stats visitor_stats">
						<s:property  value="%{#application.accessRecords[@com.fzb.forum4j.util.ParseTools@getDate()].size}"/>
					</div>
					<h5 class="stats_info">今日PV </h5>
				</div>
				<div class="g_3 quick_stats">
					<div class="big_stats tickets_stats">
						<s:property  value="%{@com.fzb.forum4j.util.ParseTools@getCountByMonth()}"/>
					</div>
					<h5 class="stats_info">当月访问</h5>
				</div>
				<div class="g_3 quick_stats">
					<div class="big_stats users_stats">
						<s:property  value="%{@com.fzb.forum4j.util.ParseTools@getCountAll()}"/>
					</div>
					<h5 class="stats_info">总访问</h5>
				</div>
				<div class="g_3 quick_stats">
					<div class="big_stats orders_stats">
						<s:property  value="%{#application.onlineUserCount}"/>
					</div>
					<h5 class="stats_info">在线人数</h5>
				</div>

				<div class="g_12 separator"><span></span></div>
				<div class="g_12">
				 
				<div class="widget_contents noPadding">
						<table class="datatable tables">
							<thead>
								<tr>
									<th>Time</th>
									<th>IP</th>
									<th>UA</th>
									<th>UserName</th>
									<th>URL</th>
								</tr>
							</thead>
							<tbody>
								<s:iterator value="%{#application.accessRecords[@com.fzb.forum4j.util.ParseTools@getDate()]}">
								<tr>
									<td><s:property value="accessTime"/></td>
									<td><s:property value="requestIp"/></td>
									<td><s:property value="UA"/></td>
									<td><s:property value="userName"/></td>
									<td><s:property value="reqeustURl"/></td>
								</tr>
								</s:iterator>
							</tbody>
						</table>
					</div>
				</div>

				</div>
			</div>
		</div>
	
<jsp:include page="include/footer.jsp"/>
